package com.laowang.blog;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

import javax.annotation.PostConstruct;

@SpringBootApplication
@MapperScan("com.laowang.blog.mapper")
@EnableScheduling
public class BlogApplication {

    @PostConstruct
    public void init(){
        //netty对redis和elasticsearch的冲突
        //netty4utils
        System.setProperty("es.set.netty.runtime.available.processors","false");
    }

    public static void main(String[] args) {
        SpringApplication.run(BlogApplication.class, args);
    }

}
